(* %filename% -- document class *)
(* Created %date% %time% by AppMaker  *)

DEFINITION MODULE U%appname%Doc;

FROM Types IMPORT
	INT16, INT32;
FROM UMenuSetup IMPORT
	CmdNumber;
FROM UMacApp IMPORT
	TDocument, TCommand;

(*${QINSPECTOR*)
FROM UMacAppUtilities IMPORT
	DoToFieldMETHOD;
(*$}*)

TYPE
(*----------*)
	T%appname%Doc = OBJECT (TDocument)
		METHOD I%appname%Doc;
		OVERRIDE METHOD Free; 
		OVERRIDE METHOD FreeData; 
		OVERRIDE METHOD DoMakeViews 	(forPrinting:		BOOLEAN);
		OVERRIDE METHOD DoNeedDiskSpace	(VAR dataForkBytes:	INT32;
										VAR rsrcForkBytes:	INT32);
		OVERRIDE METHOD DoRead			(aRefNum:			INT16;
										 rsrcExists:		BOOLEAN;
										 forPrinting:		BOOLEAN);
		OVERRIDE METHOD DoWrite			(aRefNum:			INT16;
										 makingCopy:		BOOLEAN); 
		OVERRIDE METHOD DoSetupMenus;
		%for each menu gen dynamicMenuProc.decl%

		OVERRIDE METHOD DoMenuCommand (aCmdNumber: CmdNumber): TCommand;

	(*${QINSPECTOR*)
		OVERRIDE METHOD Fields (DoToField:	DoToFieldMETHOD);
	(*$}*)
	END(*T%appname%Doc*);

END U%appname%Doc.
